/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.service.course;

import java.util.List;

import com.idenger.modules.edu.dao.course.EduCourseTeacherDao;
import com.idenger.modules.edu.entity.course.EduCourseTeacher;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.idenger.common.persistence.Page;
import com.idenger.common.service.CrudService;

/**
 * 课程教师Service
 * @author chenlin
 * @version 2017-11-30
 */
@Service
@Transactional(readOnly = true)
public class EduCourseTeacherService extends CrudService<EduCourseTeacherDao, EduCourseTeacher> {

	public EduCourseTeacher get(String id) {
		return super.get(id);
	}
	
	public List<EduCourseTeacher> findList(EduCourseTeacher eduCourseTeacher) {
		return super.findList(eduCourseTeacher);
	}
	
	public Page<EduCourseTeacher> findPage(Page<EduCourseTeacher> page, EduCourseTeacher eduCourseTeacher) {
		return super.findPage(page, eduCourseTeacher);
	}

	public List<EduCourseTeacher>  findTeacherListByCourseId(EduCourseTeacher eduCourseTeacher){
		return dao.findTeacherListByCourseId(eduCourseTeacher);
	}
	
	@Transactional(readOnly = false)
	public void save(EduCourseTeacher eduCourseTeacher) {
		super.save(eduCourseTeacher);
	}
	
	@Transactional(readOnly = false)
	public void delete(EduCourseTeacher eduCourseTeacher) {
		super.delete(eduCourseTeacher);
	}
	
}